package cn.bud.msgbus.core.exception;


import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author hxj
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class MsgBusException extends RuntimeException {
    private boolean printStackTrace = false;
    private String message;

    public MsgBusException(String message) {
        this.message = message;
    }

    public MsgBusException(String message, boolean printStackTrace) {
        this.message = message;
        this.printStackTrace = printStackTrace;
    }
}
